<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://zuche.com/jsp/jstl/uaa-taglib" prefix="uaa"%>
<%@ page import="com.zuche.framework.dao.util.DictModel" %>

<%

    String path = request.getContextPath();

    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>支付平台演示项目</title>
    <script src="http://code.jquery.com/jquery-1.7.0.min.js"></script>

</head>
<body>
<form action="<%=basePath%>testMvcMode.do_" method="get" id="eposForm" target="_self">
    <a onclick="eposSubmit('<%=basePath%>testCartp/testMvcMode.do_')" href="javascript:void(0);">测试支付宝接口支付</a><br/>
</form>
<div>
    <h1>注意:</h1>
    <p style="color:red;font-size: 25;font-weight: bold;">DEMO项目使用时,请先修改setting.properties中配置的项目部署地址,勿使用localhost.</p>
    <input type="submit" value="submit" onclick="dodispatch()"/>
    <input type = "text" id="txt" > 输入验证码
</div>

<script type="text/javascript">
    function eposSubmit(url){
        document.getElementById("eposForm").setAttribute("action", url);
        document.getElementById("eposForm").submit();
    }
    function dodispatch(){
        var memberId="14314802";
        window.open("http://crm.10101111.com/ucarcrm/member/toPage?act=toView&memberId="+memberId);
    }
    function click(){
        alert(document.getElementById("a").value);
    }
</script>

<%
    List<DictModel> list = new ArrayList<DictModel>();
    DictModel d = new DictModel();
    d.setDictCode("1");
    d.setDictName("liqingyuan");
    DictModel d2 = new DictModel();
    d2.setDictCode("2");
    d2.setDictName("liqingyuan2");
    list.add(d);list.add(d2);
    request.setAttribute("list", list);
%>
<uaa:multipleSelect id="a" dataListName="list" name="b" onConfirm="click()"/>

</body>
</html>








